<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8"/>
    <title>ITArmy</title>

    <link rel="icon" type="image/x-icon" href="/static/images/logoIcon.icon">
    <!--<link rel="stylesheet" href="bootstrap-3.3.7-dist/css/bootstrap.css" />-->
    <link rel="stylesheet" type="text/css" href="/static/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/static/css/personalIndex.css"/>
    <script type="text/javascript" src="/static/js/jquery-3.4.0.js"></script>
    <script type="text/javascript" src="/static/js/informationComment.js"></script>
</head>
<body th:style="'background-color : ' + ${session.config.color1}">
<!--顶部导航部分-->
<div class="nav">
    <!--导航居中样式-->
    <div class="navCenter">
        <div class="navLeft">
            <!--logo-->
            <div class="logo">
                <a href="/user/index"><img src="/static/images/logo.png"/></a>
            </div>
            <!--主页-->
            <div class="mainPage"><a href="/user/index">首页</a></div>

            <!--左侧未登录导航-->
            <!--下载App-->
            <div class="download" th:if="${session.user==null}"><a href="">下载App</a></div>
            <!--下载App隐藏部分-->
            <div class="downloadHide">
                <img src="/static/images/QRCode.jpg">
            </div>
            <!--左侧登录后导航将下载App换为关注和消息部分-->
            <!--关注-->
            <div class="attention" th:if="${session.user!=null}"><a href="/focus/focusInformation">关注</a></div>
            <!--消息-->
            <div class="information" th:if="${session.user!=null}"><a href="/message/getCommentMessage">消息</a></div>
            <div th:if="${session.message.all!=0}" style="display: inline-block"><div class="informationIcon" th:text="${session.message.all}"></div></div>

            <!--搜索部分-->

            <div class="search">
                <form action="/serialize/selectBS" method="get">
                    <input type="text" name="name" class="navInput"/>
                    <button class="navBtn" type="submit"><i class="fa fa-search"></i></button>
                </form>
            </div>
        </div>

        <!--<a href="/user/sign">登录</a>-->
        <!--右侧导航-->
        <div class="navRight">
            <!--右侧未登录导航有登录注册部分-->
            <div class="signIn" th:if="${session.user==null}">
                <a href="/user/sign">登录</a>
            </div>

            <!--<ul>-->
            <!--<li><a th:if="${session.user==null}" href="/user/sign">登录</a></li>-->
            <!--<li><a th:if="${session.user!=null}" href="/user/loginOut">退出</a></li>-->
            <!--</ul>-->
            <div class="register" th:if="${session.user==null}"><a href="/user/registerPage">注册</a></div>
            <!--右侧已登录导航有个人信息图片部分-->
            <!--个人信息图片部分-->

            <div th:if="${session.user!=null}" class="myselfPic"><img th:src="${session.user.uHead}">
                <i class="fa fa-sort-down" id="myselfDown"></i>
                <i class="fa fa-sort-up" id="myselfUp"></i>
            </div>
            <!--登录后显示个人信息图片下拉菜单-->
            <ul class="myselfDownList" style="padding-left: 0;margin-top: 0">
                <a href="/user/PersonalPage">
                    <li><i class="fa fa-user"></i> 个人中心</li>
                </a>
                <a href="/user/personalData">
                    <li><i class="fa fa-drivers-license-o"></i> 我的资料</li>
                </a>
                <a href="/focus/focusInformation">
                    <li><i class="fa fa-check-square-o"></i> 我的收藏</li>
                </a>
                <a href="/message/getCommentMessage">
                    <li><i class="fa fa-group"></i> 我的消息</li>
                </a>
                <li class="loginOut" style="cursor: pointer"><i class="fa fa-reply-all"></i> 退出</li>
            </ul>
            <!--写文章按钮-->
            <a href="/test/editor">
                <div class="write">写文章</div>
            </a>

        </div>
    </div>
</div>
<!--主页主体部分-->
<div class="mainPageBody">
    <!--个人主页内个人信息-->
    <div class="leftInformation">
        <!--个人主页内个人信息头像签名部分-->
        <div class="avata">
            <div class="userPhoto">
                <img th:src="${userMassage.user.uHead}">
            </div>
            <div class="userRight">
                <!--用户姓名-->
                <div class="userName">
                    <h3 th:text="${userMassage.user.uName}">昵称</h3>
                </div>
                <!--签名-->
                <div class="userText">
                    哈哈哈哈哈哈哈哈哈哈
                </div>
            </div>
        </div>
        <!--个人主页内数据等级部分-->
        <div class="grade">
            <div class="gradeLi">
                <div class="grade1text">关注</div>
                <div class="grade1number" th:text="${userMassage.focus}">01</div>
            </div>
            <div class="gradeLi">
                <div class="grade1text" >粉丝</div>
                <div class="grade1number" th:text="${userMassage.fun}">02</div>
            </div>
            <div class="gradeLi">
                <div class="grade1text">文章</div>
                <div class="grade1number" th:text="${userMassage.blogNum}">03</div>
            </div>
            <div class="gradeLi">
                <div class="grade1text">评论</div>
                <div class="grade1number" th:text="${userMassage.serializeNum}">04</div>
            </div>
            <div class="gradeLi">
                <div class="grade1text">获赞</div>
                <div class="grade1number"th:text="${userMassage.praiseNum}">05</div>
            </div>
            <!--<div class="gradeLi">-->
            <!--<div class="grade1text">等级</div>-->
            <!--<div class="grade1number" th:text="${session.user.uGrade}">06</div>-->
            <!--</div>-->
        </div>
    </div>
    <div class="rightInformation">

        <div class="rightInformationTop">

        </div>
        <div class="rightInformationBody">

            <!--博客文章-->
            <div class="article">
                <!--博客文章遍历测试内容-->
                <div class="articleTast" th:each="recommendBlog : ${recommendBlog}">
                    <a th:href="@{/blog/readBlog?(blogId=${recommendBlog.blog.bId})}">
                        <div class="articleTitle"><h2 th:text="${recommendBlog.blog.bTitle}">文章标题</h2>
                            <!--删除文章-->
                            <!--                        <span class="close">×</span>-->
                        </div>
                        <!--文章字数-->
                        <div class="articleWord" th:utext="${recommendBlog.blog.bAddress}"></div>
                        <input id="idBlog" type="hidden" th:value="${recommendBlog.blog.tId}"/>
                    </a>
                    <!--文章底部附加功能-->
                    <!--作者-->
                    <div class="author" th:text="${recommendBlog.user.uName}">作者XXXX </div>
                    <!--点赞-->
                    <div class="heart" style="display: inline-block;margin-left: 20px;">
                        <i class="fa fa-heart heart1" style="color:red;"></i> ×
                        <span th:text="${recommendBlog.likeNumber}"> </span>
                    </div>
                    <!--评论-->
                    <i class="fa fa-commenting" id="commenting" style="color: #6e727b"></i> ×
                    <span th:text="${recommendBlog.commentNumber}"> </span>
                    <!--博文发布时间-->
                    <span style="float: right;margin-right: 32px;font-size: 13px;color: #96969c;" class="articleTime"
                          th:text="${#dates.format(recommendBlog.blog.bTime,'yyyy-MM-dd HH:mm:ss')}"></span>
                </div>
            </div>
            <div class="bg-model">　　
                <div class='content'>
                    <h3>选择删除理由，精准屏蔽</h3>
                    <form action="" method="get">
                        <div class="checkboxRow1">
                            <label><input type="checkbox" value=""/> 不感兴趣</label>
                            <div style="width: 15%;display: inline-block"></div>
                            <label><input type="checkbox" value=""/> 旧闻</label>
                        </div>
                        <div class="checkboxRow1">
                            <label><input type="checkbox" value=""/> 内容低俗</label>
                            <div style="width: 15%;display: inline-block"></div>
                            <label><input type="checkbox" value=""/> 其他</label>
                        </div>
                        <button class="bg-model-sure">确定</button>
                        <button class="bg-model-ok">取消</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="/static/js/canves.js"></script>
</html>